﻿namespace BomberManServer.Gaming.Socket
{
    // all the routing headers
    enum Message : byte
    {
        // Categorie
        Map = 0x0,
        Bomb = 0x10,
        Block = 0x20,
        Player = 0x30,
        Connection = 0x40,
        // MAP 0x0
        MapReset = Map | 0x0,
        SlabOn = Map | 0x1,
        SlabOff = Map | 0x2,
        Initialize = Map | 0x3,
        ScoreBoard = Map | 0x4,
        // BOMB 0x10
        BombSet = Bomb | 0x0,
        BombExplode = Bomb | 0x1,
        BombKicked = Bomb | 0x2,
        // BLOC 0x20
        BlockDestroyed = Block | 0x0,
        BonusSpawn = Block | 0x1,
        BonusTaken = Block | 0x2,
        BonusDrop = Block | 0x3,
        // PLAYER 0x30
        PlayerMove = Player | 0x0,
        PlayerKilled = Player | 0x1,
        Move = Player | 0x2,
        PutBomb = Player | 0x3,
        TriggerBomb = Player | 0x4,
        // CONNECTION 0x40
        SendKey = Connection | 0x0,
        Ready = Connection | 0x1,
        PlayerConnected = Connection | 0x2,
        PlayerReady = Connection | 0x3,
        Identified = Connection | 0x4
    };
}
